Optimal. Leaf size=26 \[ \frac{a x^2}{2}+\frac{b \tanh ^{-1}\left (\sin \left (c+d x^2\right )\right )}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0226498, antiderivative size = 26, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.214, Rules used = {14, 4204, 3770} \[ \frac{a x^2}{2}+\frac{b \tanh ^{-1}\left (\sin \left (c+d x^2\right )\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 4204
Rule 3770
Rubi steps
\begin{align*} \int x \left (a+b \sec \left (c+d x^2\right )\right ) \, dx &=\int \left (a x+b x \sec \left (c+d x^2\right )\right ) \, dx\\ &=\frac{a x^2}{2}+b \int x \sec \left (c+d x^2\right ) \, dx\\ &=\frac{a x^2}{2}+\frac{1}{2} b \operatorname{Subst}\left (\int \sec (c+d x) \, dx,x,x^2\right )\\ &=\frac{a x^2}{2}+\frac{b \tanh ^{-1}\left (\sin \left (c+d x^2\right )\right )}{2 d}\\ \end{align*}
Mathematica [A] time = 0.0136247, size = 26, normalized size = 1. \[ \frac{a x^2}{2}+\frac{b \tanh ^{-1}\left (\sin \left (c+d x^2\right )\right )}{2 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.014, size = 39, normalized size = 1.5 \begin{align*}{\frac{a{x}^{2}}{2}}+{\frac{b\ln \left ( \sec \left ( d{x}^{2}+c \right ) +\tan \left ( d{x}^{2}+c \right ) \right ) }{2\,d}}+{\frac{ac}{2\,d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.17302, size = 42, normalized size = 1.62 \begin{align*} \frac{1}{2} \, a x^{2} + \frac{b \log \left (\sec \left (d x^{2} + c\right ) + \tan \left (d x^{2} + c\right )\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.05832, size = 103, normalized size = 3.96 \begin{align*} \frac{2 \, a d x^{2} + b \log \left (\sin \left (d x^{2} + c\right ) + 1\right ) - b \log \left (-\sin \left (d x^{2} + c\right ) + 1\right )}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 3.25735, size = 42, normalized size = 1.62 \begin{align*} \begin{cases} \frac{a \left (c + d x^{2}\right ) + b \log{\left (\tan{\left (c + d x^{2} \right )} + \sec{\left (c + d x^{2} \right )} \right )}}{2 d} & \text{for}\: d \neq 0 \\\frac{x^{2} \left (a + b \sec{\left (c \right )}\right )}{2} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.34693, size = 68, normalized size = 2.62 \begin{align*} \frac{{\left (d x^{2} + c\right )} a + b \log \left ({\left | \tan \left (\frac{1}{2} \, d x^{2} + \frac{1}{2} \, c\right ) + 1 \right |}\right ) - b \log \left ({\left | \tan \left (\frac{1}{2} \, d x^{2} + \frac{1}{2} \, c\right ) - 1 \right |}\right )}{2 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]